package com.star.star.struct;

import com.star.star.dto.StarAlbumSaveWxuserDTO;
import com.star.star.dto.StarAlbumUpdateWxuserDTO;
import com.star.star.entity.StarAlbum;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 艺人专辑转对象
 *
 * @author yangzj
 */
@Mapper
public interface StarAlbumStruct {
    StarAlbumStruct INSTANCE = Mappers.getMapper(StarAlbumStruct.class);

    /**
     * 到
     *
     * @param dto 入参
     * @return {@link StarAlbum}
     */
    StarAlbum to(StarAlbumSaveWxuserDTO dto);

    /**
     * 到
     *
     * @param dto 入参
     * @return {@link StarAlbum}
     */
    StarAlbum to(StarAlbumUpdateWxuserDTO dto);
}
